from twisted.logger import Logger


class Foo:
    log = Logger()

    def oops(self, data):
        self.log.error("", data=data)
